package com.kgc.novel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.*;

/**
 * @author Wang乐俊.
 * @date 2023/5/9 0009 15:45
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("book_shelf")
@Api(tags = "书架类")
public class BookShelf implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 书架主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)

    private String id;
    /**
     * 书本编号；关联书本管理
     */
    @ApiParam("书本编号")
    @TableField("book_id")
    private String bookId;
    /**
     * 用户编号；关联用户管理
     */
    @ApiParam("用户编号")
    @TableField("user_id")
    private String userId;

}
